package com.yfp.operation.mapper;

import com.yfp.operation.domain.LotteryRecordsReward;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yfp.operation.domain.dto.GrantRepertoryDTO;
import com.yfp.operation.domain.vo.PrizeVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author admin
* @description 针对表【lottery_records_reward(抽奖-奖品配置表)】的数据库操作Mapper
* @createDate 2024-12-30 10:00:20
* @Entity domain.com.yfp.operation.LotteryRecordsReward
*/
public interface LotteryRecordsRewardMapper extends BaseMapper<LotteryRecordsReward> {

    /**
     * 新增奖品配置
     * @param list
     * @param id
     */
    void addLotteryRecordsReward(@Param("list") List<LotteryRecordsReward> list, @Param("id") Long id);

    /**
     * 库存发放详情
     * @param grantRepertoryDTO
     * @return
     */
    List<PrizeVO> grantRepertory(GrantRepertoryDTO grantRepertoryDTO);

    /**
     * 根据抽奖活动id获取奖品列表
     * @param id
     * @return
     */
    List<LotteryRecordsReward> prizeList(Long id);

    /**
     * 修改活动奖品
     * @param rewards
     */
    void updateReward(@Param("rewards") List<LotteryRecordsReward> rewards);

}




